//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
//     Copyright (c) Telligent Systems Corporation.  All rights reserved.
// </copyright> 
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CommunityServer.Components;

namespace CommunityServer.Controls {
	
	/// <summary>
	/// An Image which has an ImageUrl that will be resolved relative to the current theme.
	/// </summary>
	public class ThemedImage : Image {
		
		protected override void Render(HtmlTextWriter writer) {
			this.ImageUrl = this.ResolveUrl( Globals.GetSkinPath() + this.ImageUrl );
			base.Render( writer );
		}

	}
}
